<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>GWU Group Project - Contact Manager</title>
</head>
<body>
 
<h2>Contact Manager</h2>
 
<form:form method="post" action="performUpdate.html" commandName="contact">
 <input type="hidden" id="id" name="id" value="${contact.id}">
    <table>
    <tr>
        <td><form:label path="firstName">First Name</form:label></td>
        <td><form:input path="firstName" /></td>
    </tr>
    <tr>
        <td><form:label path="lastName">Last Name</form:label></td>
        <td><form:input path="lastName" /></td>
    </tr>
    <tr>
        <td><form:label path="email">Email</form:label></td>
        <td><form:input path="email" /></td>
    </tr>
    <tr>
        <td><form:label path="phone">Telephone</form:label></td>
        <td><form:input path="phone" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="submit" value="Update Contact"/>
        </td>
		<td>
            <form><input Type="button" value="Cancel" onClick="history.go(-1);return true;"></form>
        </td>
    </tr>
</table> 
</form:form>
 
</body>
</html>